package com.xy.gateway.control.check.response;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.xy.gateway.model.EpayGateSetting;

public class PaymentResCheckFactory {
	private static PaymentResCheckFactory m_instance = new PaymentResCheckFactory();

	private void PaymentResCheckFactory() {

	}

	public static PaymentResCheckFactory getInstance() {
		return m_instance;
	}

	public PaymentResCheck createPaymentResCheck(HttpServletRequest req,
			String sid, String paytype,Map requestValues) {
		PaymentResCheck check = null;
		if (sid.equals(EpayGateSetting.SID_CGB)) {
			check = new PaymentResCheckStandart(req, sid, paytype,requestValues);
		} else  {
			check = new PaymentResCheckStandart(req, sid, paytype,requestValues);
		}
		return check;
	}
}
